<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">

    <title>
        比赛报名系统
    </title>

    <!-- CSS  -->
    <!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">-->
    <link href="/bm/Public/css/Mi.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    <link href="/bm/Public/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    <link href="/bm/Public/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>


</head>
<body>
<nav class="blue" role="navigation">
    <div class="nav-wrapper container"><img class="z-depth-2 hide-on-med-and-down circle responsive-img"
                                            src="/bm/Public/images/logo3.jpg" width="50px"
                                            style="margin:5px;border-radius:50%"><a id="logo-container"
                                                                                    href="<?php echo U('Index/index'); ?>"
                                                                                    class="brand-logo">比赛报名系统</a>
        <ul class="right hide-on-med-and-down">
            <li><a href="<?php echo U('Index/index'); ?>">首页</a></li>
            <?php if (session('?stuid')): ?>
                <li><a href="<?php echo U('UserInfo/index'); ?>">报名详情</a></li>
                <li><a class="dropdown-button" href="#!" data-activates="dropdown1"><?php echo session("stuid"); ?><i
                            class="mdi-navigation-arrow-drop-down right"></i></a></li>
                <li><a class="waves-effect waves-light btn red" href="<?php echo U('Login/logout'); ?>">退出</a></li>
            <?php else: ?>
                <li><a class="waves-effect waves-light btn red" href="<?php echo U('Login/index'); ?>">登录</a>
                </li><?php endif; ?>
        </ul>
        <!-- Dropdown Structure -->
        <ul id="dropdown1" class="dropdown-content z-depth-2" style="margin-top: 70px;">
            <li><a href="<?php echo U('Home/UserInfo/changePwd'); ?>">修改密码</a></li>
            <!--<li><a href="#!">我的收藏</a></li>-->
        </ul>
        <ul id="nav-mobile" class="side-nav">
            <li><a href="<?php echo U('Index/index'); ?>">首页</a></li>

            <?php if (session('?stuid')): ?>
                <li><a href="<?php echo U('Index/index'); ?>"><?php echo($_SESSION["stuid"]); ?></a></li>
                <li><a href="<?php echo U('Home/UserInfo/index'); ?>">报名详情</a></li>
                <li><a href="<?php echo U('Home/UserInfo/changePwd'); ?>">修改密码</a></li>
                <li><a href="<?php echo U('Home/Login/logout'); ?>">退出</a></li>
            <?php else: ?>
                <li><a href="<?php echo U('Home/Login/index'); ?>">登录</a></li><?php endif; ?>
        </ul>
        <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
    </div>
</nav>

<div class="container">
    <div class="section" id="mysec">
        <h4>你参加的个人赛</h4>
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="card-panel">
                    <table class="striped responsive-table">
                        <thead>
                        <tr>
                            <th data-field="id">No</th>
                            <th data-field="name">比赛名称</th>
                            <th data-field="price">比赛成绩</th>
                        </tr>
                        </thead>

                        <tbody>
                        <?php if (is_array($UserInfo_one)): $i = 0;
                            $__LIST__ = $UserInfo_one;
                            if (count($__LIST__) == 0) : echo "";
                            else: foreach ($__LIST__ as $key => $vo): $mod = ($i % 2);
                                ++$i; ?>
                                <tr>
                                <td><?php echo($i); ?></td>
                                <td><?php echo getEnrName($vo[enid]); ?></td>
                                <td>
                                    <?php if (empty($vo[grade])): ?>成绩未出
                                    <?php else: ?>
                                        <?php echo($vo["grade"]); endif; ?>
                                </td>
                                </tr><?php endforeach; endif;
                        else: echo "";endif; ?>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
        <h4>你参加的团体赛</h4>
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="card-panel">
                    <table class="striped responsive-table">
                        <thead>
                        <tr>
                            <th data-field="id">No</th>
                            <th data-field="name">比赛名称</th>
                            <th data-field="name">团队成员</th>
                            <th data-field="price">比赛成绩</th>
                        </tr>
                        </thead>

                        <tbody>
                        <?php if (is_array($UserInfo_team)): $i = 0;
                            $__LIST__ = $UserInfo_team;
                            if (count($__LIST__) == 0) : echo "";
                            else: foreach ($__LIST__ as $key => $vo): $mod = ($i % 2);
                                ++$i; ?>
                                <tr>
                                <td><?php echo($i); ?></td>
                                <td><?php echo getTeamEnName($vo[teamid]); ?></td>
                                <td><?php echo getTeamName($vo[teamid]); ?></td>
                                <td>
                                    <?php if (empty($vo[grade])): ?>成绩未出
                                    <?php else: ?>
                                        $vo.grade<?php endif; ?>
                                </td>
                                </tr><?php endforeach; endif;
                        else: echo "";endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <!--<ul class="pagination center">-->
        <!--<?php echo($page); ?>-->
        <!--</ul>-->
    </div>


</div>


<div class="clearfix"></div>

<footer class="page-footer blue" style="padding-top: 0px;">
    <div class="footer-copyright">
        <div class="container center">
            © 2016 广西水利电力职业技术学院<a class="orange-text text-lighten-3" href="#">敏捷软件协会</a>
        </div>
    </div>
</footer>
<script type="text/javascript" src="/bm/Public/js/jquery.js"></script>
<script src="/bm/Public/js/jquery-ui.js"></script>
<script src="/bm/Public/js/materialize.js"></script>
<script src="/bm/Public/js/init.js"></script>


</body>

</html>

</html>